/**
 * Created by Administrator on 2017/3/13 0013.
 */
ControlCenter={
    Create:function(){
        var cc={};
        var whole=new PIXI.DisplayObjectContainer();
        var pageWhole=new PIXI.DisplayObjectContainer();
        var page1,page2,page3,page4;
        cc.Go=function(){
            // whole.addChild(pageWhole);

            page1=new Page1();
            whole.addChild(page1);






            // page4.alpha=0;

            setTimeout(function(){
                page1.In();
            },500);


            // page2.In();
            // page3.In();

            // page3.test();

            document.addEventListener("PageChange",function(e){
                switch (e.detail){
                    case 2:page2.In();break;
                    case 3:page3.In();page2.Out();break;
                }
            })






            // var textTime= new PIXI.Text('0',{fontFamily : 'Arial', fontSize: 20, fill : 0x000000, align : 'center'});
            // textTime.x=400;
            // textTime.y=400;
            // whole.addChild(textTime);


        };
        cc.DoIt=function(){
            if(page1) {
                page1.DoIt();
            }
        }

        cc.ReturnWhole=function(){
            return whole;
        };
        return cc;
    }
}
